|
SET SPRITE DIFFUSE
This command will set the diffuse values of the specified sprite.
SET SPRITE DIFFUSE Sprite Number, Red Value, Green Value, Blue Value
Sprite Number
Integer
The sprite number
Red Value
Integer
The red component value ranges are 0 to 255, with 255 being completely full and 0 being no color use
Green Value
Integer
The green component value ranges are 0 to 255, with 255 being completely full and 0 being no color use
Blue Value
Integer
The bed component value ranges are 0 to 255, with 255 being completely full and 0 being no color use
This command does not return a value.
The diffuse values controls the quantity of colour the sprite uses from each RGB component. The value ranges are 0 to 255, with 255 being completely full and 0 being no color use. If you only specified a value in the Red component, the sprite would appear a shade of red. Same goes for the other colours, and combinations of colour. The parameters should be specified using integer values.
load image "manwalking.bmp",1
cls
sprite 1,100,100,1
set sprite diffuse 1,255,255,255
do
loop
end
SPRITE Commands Menu
Index
|